package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 t_goods
 * 
 * @author ruoyi
 * @date 2024-01-08
 */
@Data
public class TGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品缩略图 */
    @Excel(name = "商品缩略图")
    private String goodsImg;

    /** 商品类别父级id */
    @Excel(name = "商品类别父级id")
    private Integer goodsTypeParentId;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Integer goodTypeId;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String goodsContent;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal price;

    /** 销量 */
    @Excel(name = "销量")
    private Integer salesVolume;

    /** 库存 */
    @Excel(name = "库存")
    private Integer inventory;

    /** 是否上架 0 未上架  1 上架 */
    @Excel(name = "是否上架 0 未上架  1 上架")
    private Integer isGrounding;

    /** 是否热销 0 否  1是 */
    @Excel(name = "是否热销 0 否  1是")
    private Integer isHotSales;
    /** 是否推荐 0 否  1是 */
    @Excel(name = "是否推荐 0 否  1是")
    private Integer recommended;
    @TableField(exist = false)
    private List<TGoodsSpecification> specifications;
    @TableField(exist = false)
    private List<GuiGeVo> specificationsList;
}
